/*************************************************************************
	> File Name: EP02-3.c
	> Author: 
	> Mail: 
	> Created Time: 
 ************************************************************************/
#include <stdio.h>
#define MAX_N 4000000

int main() {
    int a = 1, b = 1, c;
    int sum = 0;
    while (a + b <= MAX_N) {
        c = a + b;
        a = b;
        b = c;
        if (c & 1) continue;
        sum += c;
    }
    printf("%d\n", sum);
    return 0;
}
